/**
 * 
 */
package auction.product.action;

import java.io.IOError;
import java.io.IOException;

import auction.product.dao.ProductDAO;
import auction.product.dto.ProductDTO;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;


@SuppressWarnings({ "serial", "rawtypes" })
public class Au_ProductInsert extends ActionSupport implements Preparable, ModelDriven{
	private ProductDTO resultClass;
	private ProductDAO dao;
	private int pdno;
	
	public Au_ProductInsert() throws IOException{
		dao = ProductDAO.getinstance();
	}
	public String execute()throws Exception{
		return SUCCESS;
	}
	
	
	@Override
	public Object getModel() {
		return resultClass;
	}

	@Override
	public void prepare() throws Exception {
		resultClass = new ProductDTO();
	}

}
